package com.water.dmdb.controller;

import com.water.dmdb.service.IService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class ServiceController {
    @Autowired
    private IService iService;

    @RequestMapping("/test")
    public String test() {
        return iService.getName("name");
    }
}
